# How to build ColorGrab color picker from source on OpenBSD

Description: A cross-platform color picker.

Features:
- Pick colors from screen.
- Magnify screen.
- Convert between color models and representations.
- Palette tool.

Instructions:

```
doas pkg_add wxWidgets-gtk3 cmake
# we'll have to try develop branch because of this issue:
# https://github.com/nielssp/colorgrab/issues/10
git clone --depth=1 https://github.com/Acolarh/colorgrab -b develop
cd colorgrab
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local
make
# to install
doas make install
```

After install you can just run it from the application menu, or simply run `colorgrab` from terminal.

To pick a color, click and drag the dropper button to point to somewhere on the screen.

License: MIT Expat

Project source: <https://github.com/nielssp/colorgrab>

## To build `master` branch

There is an issue when building the project with wxWidgets version 3. This can be fixed with [this commit](https://github.com/nielssp/colorgrab/commit/5ecc8e082197e5205fbe365e4897309967d7c26c) applied as a patch.
